//***********************************************************************
//	File:		Grenade.cpp
//	Author:		
//	Course:		SGP 1405
//	Purpose:	
//***********************************************************************
//***********************************************************************
//	Purposfully left blank for all comments regarding this file 
//	
//	
//	
//***********************************************************************



#include "Grenade.h"

Grenade::Grenade(float posX, float posY)
{
	SetAcceleration({ 0 , 0 }); 
	SetDynamicFrictionCoefficient(.2f); 
	SetExplodeCDL(2); 
	SetExplodeTimer(0);
	SetHealth(4564); 
	//SetImage();
	SetIsFrozen(false); 
	SetMass(1); 
	SetMaxHealth(4564); 
	SetMaxSpeed(200);
	SetPassable(true);
	SetPosition(SGD::Point{ posX, posY }); 
	SetRadius(100); 
	SetRotation(0);
	SetSize(SGD::Size{ 8, 8 }); 
	SetSpeed(0); 
	SetStaticFrictionCoefficient(.5f);
	//SetTakeDamage(); //particle emitter
	SetVelocity(SGD::Vector{ 0, -1 }); 

}

//Interface
void Grenade::Update(float dt)
{
	//Last line of function
	Entity::Update(dt); 
}

void Grenade::Render()
{

}

void Grenade::HandleCollision(const IEntity* pOther)
{

}

void Grenade::HandleEvent()
{

}

SGD::Rectangle Grenade::GetRect() const
{
	return SGD::Rectangle{}; 
}

void Grenade::ModifyHealth(float hpAmount)
{

}

void Grenade::ApplyFriction(float dt)
{

}


//Grenade specific
void Grenade::Explode()
{

}
